package com.cms.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.cms.model.vo.SysRole;
import tk.mybatis.mapper.common.Mapper;

public interface SysRoleDao extends Mapper<SysRole>{

	List<SysRole> selectUserRolesByUserId(@Param("userId") Integer userId);

	List<SysRole> selectRoleList(SysRole role);

	void updateRoleByStatus(Map<String,Object> params);

	Long selectRoleNameCheck(@Param("roleName") String roleName,@Param("roleId") Integer roleId);

	List<SysRole> selectUserRoleByRoleIdList(@Param("roleIds") Integer[] roleIds);

	List<SysRole> selectRoleListByStatus();

	List<SysRole> selectDeceasedUserRoleByRoleIdList(@Param("roleIds") Integer[] roleIds);

}
